package com.jmb.demo1;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class Student {
    @Value("金天")
    private String name;
    @Value("河南开封")
    private String adders;
    @Value("24")
    private Integer age;
    public Student() {
        System.out.println("我们的Student Demo1无参构造");
    }

    public String getName() {
        return name;
    }


    public String getAdders() {
        return adders;
    }


    public Integer getAge() {
        return age;
    }

}
